<script setup lang="ts">
  defineProps<{
    value: any;
  }>();
  const emit = defineEmits(['update:value']);
  const onChange = (e: any) => {
    emit('update:value', e);
  };
</script>

<template>
  <n-date-picker
    :formatted-value="value"
    @update:formatted-value="onChange"
    value-format="yyyy-MM-dd HH:mm:ss"
    clearable
    class="w-full"
  />
</template>

<style scoped lang="less"></style>
